package com.exposit.zbs.service;

import com.exposit.zbs.model.Message;
import com.exposit.zbs.model.User;

import java.util.List;


public interface IUserService {

	void saveUser(User user); // add user in DB

	void updateUserData(User user); // update user in DB

	User getUserbyId(Long id); // get user by his ID

	User getUserbyLogin(String login);// get user by his login

	boolean checkUserExist(User user);

	public List<User> getAllUsers();

	void sendMessage(Message message);

	void readMessages(User user);
}
